import request from "@/utils/request";

// 分享活动产品列表
export function getShareActivePackageList(query) {
  return request({
    url: "/app/getShareActivePackageList",
    method: "get",
    params: query,
  });
}

// 分享活动产品单条
export function getShareActivePackageInfo(query) {
  return request({
    url: "/app/getShareActivePackageInfo",
    method: "get",
    params: query,
  });
}

// 分享活动产品-新增

export function addShareActivePackage(data) {
  return request({
    url: "/app/addShareActivePackage",
    method: "post",
    data,
  });
}

// 分享活动产品-编辑

export function updateShareActivePackage(data) {
  return request({
    url: "/app/updateShareActivePackage",
    method: "post",
    data,
  });
}

// 分享活动产品-删除

export function deleteShareActivePackage(data) {
  return request({
    url: "/app/deleteShareActivePackage",
    method: "post",
    data,
  });
}
